package com.wlw.admin.openeye.mvp.model

import com.wlw.admin.openeye.mvp.model.bean.CategoryBean
import com.wlw.admin.openeye.net.RetrofitManager
import com.wlw.admin.openeye.rx.scheduler.SchedulerUtils
import io.reactivex.Observable

class CategoryModel {
    fun getCategoryData(): Observable<ArrayList<CategoryBean>> {
        return RetrofitManager.service.getCategory().compose(SchedulerUtils.ioToMain())
    }
}